package com.saicmotor.hk2.service;

import com.saicmotor.hk2.model.UserRole;
import com.saicmotor.hk2.model.UserRoleInfo;

import java.util.List;

public interface UserRoleService {
    void insertUserRoleInfo(String userName,String roleName);

    List<UserRole> getAll();

    List<UserRoleInfo> getAllInfo();

    void deleteByUserName(String userName );

    void deleteByRoleName(String roleName);

    void updateUser(String oldUserName,String newUserName,String RoleName);

    void updateRole(String oldRoleName,String newRoleName,String userName);

    boolean checkRecord(String userName, String roleName);

    void createUserRoleTable(String tableName);
}
